package com.sync.data.ievent.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.sync.data.base.BaseEntity;
import com.sync.data.common.obj.annoation.ObjectPrefix;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 财务申请的token
 * @Author: ievent-boot
 * @Date: 2022-06-10
 * @Version: V1.0
 */
@Entity
@Getter
@Setter
@ObjectPrefix("mbud")
public class MtBudget extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    private String budgetCode;
    /**
     * 总金额
     */
    private BigDecimal budgetAmount;
    /**
     * 预算类型
     */
    private String budgetType;
    /**
     * 有效开始时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    /**
     * 有效结束时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
    /**
     * 预算部门
     */
    private String divisionId;
    /**
     * 预算所有人id
     */
    private String budgetOwnerId;
    /**
     * 预算所有人name
     */
    private String budgetOwnerName;
    /**
     * 是否有效
     */
    private Integer active;
    /**
     * 描述
     */
    private String description;


    private BigDecimal frozenAmount;

    /**
     * 结算金额
     */
    private BigDecimal settlementAmount;

    /**
     * 预算编号
     */
    private String budgetNumber;

    /**
     * 法律实体编号
     */
    private String legalEntityCode;

    /**
     * io编号
     */
    private String ioCode;

    /**
     * 成本中心编号
     */
    private String costCenterCode;

    /**
     * 审批人 多人逗号隔开
     */
    private String approver;

    /** 外部id */
    private String externalId;

    private String sysOrgCode;

    private Integer isSupplier;

    private String meetingLevel;

}
